#-*- codeing = utf-8 -*-
#@Time : 2020/9/13 15:13
#@Author : 阳某
#@File : test.py
#@Software : PyCharm
'''
from time import sleep
from selenium import webdriver
# 实现无可视化界面（无头浏览器）     phantomjs
from selenium.webdriver.chrome.options import Options
# chrome_options = Options()
# chrome_options.add_argument("--headless")
# chrome_options.add_argument("--disable-gpu")
# # 实现检测规避
# from selenium.webdriver import ChromeOptions
# option = ChromeOptions()
# option.add_experimental_option("excludeSwitches",['enable-automation'])
# # 如何实现让selenium规避被检测的风险
# driver = webdriver.Chrome(chrome_options = chrome_options,options = option)
# driver.get('https://www.300.cn/reg/register?referer=https%3A%2F%2Fwww.300.cn%2Fanliku%2Fanli_3809091.html&vt_origin=300')

'''

'''
import json
str = {'domain': 'passport.jd.com', 'httpOnly': False, 'name': '_s_id', 'path': '/', 'secure': False, 'value': 'gn16dh7zww3ggnmv92i16003468792788gul'}
print(type(str))
str_json = json.dumps(str)
print(str_json)
print(type(str_json))
str = str_json[1:-1].replace(':','=')
str = str.replace('"','')
str = str.replace(',',';')
str = str.replace(' ','')
print(str)
'''